<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">
  <h:head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />

    <title>Authentification Inwi</title>


        <h:outputStylesheet library="css" name="signin.css"></h:outputStylesheet>
        <h:outputStylesheet library="css" name="bootstrap.css"></h:outputStylesheet>
  

    <!-- Just for debugging purposes. Don't actually copy this line! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </h:head>

    <h:body style="background-image: url('#{request.contextPath}/javax.faces.resource/back.jpg.jsf?ln=images'); background-size: cover">

    <div class="container">

      <h:form class="form-signin">
          <p:messages id="messages"  showDetail="true" autoUpdate="true" closable="true" />
          <p:inputText type="text" value="#{authentificationBean.personne.user}" styleClass="form-control" placeholder="Username" required="true" requiredMessage="Username"/>
        <p:inputText type="password" value="#{authentificationBean.personne.pass}"  styleClass="form-control" placeholder="Password" required="true" requiredMessage="Password" />
        <p:commandButton update="messages" id="errorButton" value="Connexion" action="#{authentificationBean.login()}" styleClass="btn btn-lg btn-block" style="background-color: #990099;color: white" type="submit" />
      </h:form>

    </div> <!-- /container -->


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
  </h:body>
</html>


